//*******************************************************************
//  Novels.java   Author: Tang Caiming
//
//  由Books类派生的小说类。
//*******************************************************************
public class Novels extends Books
{
    private String category;   //  小说类别

    public Novels(int numpages, String numbookname,String numauthor,String numpress,String numcopyrightdate,String sort)
    {
        super(numpages,numbookname,numauthor,numpress,numcopyrightdate);
       category = sort;
    }

    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getCategory()
    {
        return category;
    }

    @Override
    public String toString()
    {
        String result = super.toString() + "\n该小说类型为：" + category;
        return result;
    }
}
